package cn.microservices.cloud.gateway.service;

import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import cn.microservices.cloud.gateway.util.token.Token;

public interface AuthService {

    Token verifyToken(String url, String token, ServerHttpResponse response);
    Boolean headersVerification(ServerHttpResponse response, ServerHttpRequest request, String token, String sign, String timestamp, String rawPath, String bodyStr, String equipmentType, String version);

    String getLoginUser(String token, ServerHttpResponse response);

    /**
     * 用户权限校验
     * @param url
     * @param token
     * @param response
     * @return
     */
    Boolean verifyPermission(String url,Token token, ServerHttpResponse response);
}
